package com.xca.znb.presenter;

import com.xca.znb.entity.Goods;
import com.xca.znb.entity.Local;
import com.xca.znb.entity.User;
import com.xca.znb.model.imodel.IClearing;

public class ClearingPresenter {
    private IClearing iClearing ;
    public ClearingPresenter(IClearing iClearing){
        this.iClearing = iClearing ;
    }
    public int getLocalDefaultId(String phone){
        return iClearing.getDefaultLocalId(phone);
    }

    public Local getLocalById(int id){
        return iClearing.getLocalById(id);
    }

    public User getUserByPhone(String phone){
        return iClearing.getUserByPhone(phone);
    }

    public Goods getGoodsById(int id){
        return iClearing.getGoodsById(id);
    }
}
